
import { FC, useState, useEffect } from 'react'
import { useParams } from 'react-router-dom'
import { HouseList, HeaderBar } from 'components'

interface ParamsProps {
  house: string
}

const My:FC<any> = (props) => {
  // 动态路由参数
  const { house } = useParams<ParamsProps>();
  const [houseList, setHouseList] = useState([])
  // const {} = props;
  console.log('params:', house)
  // favorHouse
  // newHouse
  // favorCommunity
  // rentout

  return <div className="my-wrapper">
    <HeaderBar></HeaderBar>

    <HouseList
      src="/avatar.jpeg"
      title="房屋信息">
    </HouseList>

  </div>
}

export default My;
